package cn.mw.cmdb.link.enums;

/**
 * @description 线路检测方式枚举
 */
public enum LinkDetectionWayEnum {
    ICMP("ICMP","MW_ICMP_线路模版[ICMP][子模版]"),
    NQA("NQA","MW_NQA链路探测模版[SNMP][子模版]"),
    IPSLA("IPSLA","MW_IPSLA链路探测模版[SNMP][子模版]"),
    NOT_HAVE("NOT_HAVE",""),
    ;

    private String type;

    private String templateName;

    public String getType() {
        return type;
    }

    public String getTemplateName() {
        return templateName;
    }

    LinkDetectionWayEnum(String type, String templateName) {
        this.type = type;
        this.templateName = templateName;
    }

    public static LinkDetectionWayEnum getLinkDelectionWayEnum(String type) {
        for (LinkDetectionWayEnum linkDetectionWayEnum : values()) {
            if (type.equals(linkDetectionWayEnum.getType())) {
                return linkDetectionWayEnum;
            }
        }
        return null;
    }
}
